From 940185b2f6f343251c2b83bd96e599398cea51ec Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 21 Sep 2018 16:54:48 +0100 Subject: [PATCH] x86/mem_access: put p2m_{get/set}_suppress_ve under CONFIG_HVM They are used by HVM code only. Signed-off-by: Wei Liu Acked-by: Razvan Cojocaru --- xen/arch/x86/mm/mem_access.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/mem_access.c b/xen/arch/x86/mm/mem_access.c index 2217bda4c5..826c35fc5c 100644 --- a/xen/arch/x86/mm/mem_access.c +++ b/xen/arch/x86/mm/mem_access.c @@ -501,6 +501,7 @@ void arch_p2m_set_access_required(struct domain *d, bool access_required) } } +#ifdef CONFIG_HVM /* * Set/clear the #VE suppress bit for a page. Only available on VMX. */ @@ -600,6 +601,7 @@ int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve, return 0; } +#endif /* * Local variables: -- 2.30.2